package com.wangyk.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties;

/**
 * 配置的动态注入
 */
public class ZuulConfig
{
    @ConfigurationProperties("zuul")
    @RefreshScope
    public ZuulProperties zuulProperties()
    {
        return new ZuulProperties();
    }
}
